Ext.define("Demo.model.finance.prepayModel",{
	extend:"Ext.data.Model",
	alias:"widget.prepayModel", 
	fields:[{
		name:"billNo",type:"string"
	},{
		name:"supplierNo",type:"string"
	},{
		name:"billDate",type:"string"
	},{
		name:"cashStyleName",type:"string"
	},{
		name:"cashStyleMoney",type:"double"
	},{
		name:"visaStyleName",type:"string"
	},{
		name:"visaStyleMoney",type:"double"
	},{
		name:"otherPayStyleName",type:"string"
	},{
		name:"otherPayStyleMoney",type:"double"
	},{
		name:"currencyName",type:"string"
	},{
		name:"exchRate",type:"double"
	},{
		name:"discountPer",type:"double"
	},{
		name:"offSetStyle",type:"string"
	},{
		name:"accMonthToMonth",type:"string"
	},{
		name:"voucherNo",type:"string"
	},{
		name:"deptFrom",type:"dept.departNo"
	},{
		name:"project",type:"string"
	},{
		name:"makerSign",type:"string"
	},{
		name:"permitter",type:"string"
	},{
		name:"createDate",type:"string"
	},{
		name:"logicStatus",type:"int"
	},{
		name:"auditStatus",type:"int"
	},{
		name:"auditDate",type:"string"
	}],
	
	hasMany:{  
		model: 'finance.prepayDetailModel',  
        name : 'getPrepayDetails',
        autoLoad : false,
        filterProperty: 'billNo'
	}  
})